<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改材料详情')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-type-edit" th:object="${sysMatDetailsType}">
            <input name="matDetailsId" th:field="*{matDetailsId}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label">材料详情名称：</label>
                <div class="col-sm-8">
                    <input name="matDetailsName" th:field="*{matDetailsName}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">材料详情键值：</label>
                <div class="col-sm-8">
                    <input name="matDetailsVaule" th:field="*{matDetailsVaule}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">材料数据类型：</label>
                <div class="col-sm-8">
                    <input name="matDataType" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">材料详情备注：</label>
                <div class="col-sm-8">
                    <input name="matDetailsRemark" th:field="*{matDetailsRemark}" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <script type="text/javascript">
        var prefix = ctx + "ruoyi/details";
        $("#form-type-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-type-edit').serialize());
            }
        }

        $("input[name='matDetailsCreateTime']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });
    </script>
</body>
</html>